Created: 2022-08-01
Tags: #fleeting
Text Input/Output
getchar() reads the next input character from a text stream
Then returns that as its value
The function putchar(char) prints a character each time it is called
[[printf is not part of the C language]]
[[printf and manipulating its outputs]]
When array is passed as argument in function
The value passed to function is address of the beginning in the array.
No copying of array elements is one
When array is passed as argument in function
The value passed to function is address of the beginning in the array. No copying of array elements is one
The value passed to function (except array)
Value will be copied and made into a temporary variable that only lasts until function execution is done.
Tip: Every text line has at least one character;
even a line containing only a newline has length 1
Good things to initialize first
-> When passing an array as an argument to a function
Because it gives garbage values, harder to debug